package com.forclass;

public class BookTestForName {
    public static void main(String[] args) throws Exception {
        Class<?> bookClazz = Class.forName("com.forclass.Book");
        Object obj = bookClazz.getDeclaredConstructor().newInstance();
        Book book = (Book) obj;
        book.read();
    }
}
